package com.wawei.seeds.services.remote;

import com.wawei.seeds.utils.NetBase;

import retrofit.Callback;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Query;

/**
 * Created by itachi on 15/7/9.
 */
public interface ReservationServiceRestfulService {
    @FormUrlEncoded
    @POST("/booking/apply.action")
    void reservation(@Field("userId")Integer userId,
                     @Field("bookingItems")String itemIds,
                     @Field("providerId")String providerId,
                     @Field("bookingTime")Long bookingTime,
                     @Field("bookingPeople")Integer bookingPeople,
                     @Field("remark")String remark,
                     Callback<NetBase> result);

    @GET("/booking/userBookings.action")
    void getUserBookings(@Query("userId")Integer userId, Callback<ReservationServiceRestfulWrapper> result);

    @GET("/booking/accept.action")
    void acceptBooking(@Query("bookingId")String bookingId, Callback<NetBase> result);

    @GET("/booking/cancel.action")
    void cancelBooking(@Query("bookingId")String bookingId, Callback<NetBase> result);
}
